import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'home',
    component: () => import('../views/Home/index.vue'),
    meta: {
      title: 'Home'
    }
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('../views/login/index.vue')
  },
  {
    path: '/signup',
    name: 'signup',
    component: () => import('../views/signup/index.vue')
  },
  {
    path: '/dietary-needs',
    name: 'dietary-needs',
    component: () => import('../views/dietaryNeeds/index.vue')
  },
  {
    path: '/sobhnas',
    name: 'sobhnas',
    component: () => import('../views/SobhnasView/index.vue'),
    meta: {
      name: 'sobhnasAuth'

    }
  },
  {
    path: '/almighty',
    name: 'almighty',
    component: () => import('../views/almightyView/index.vue'),
    meta: {
      name: 'almightyAuth'
    }
  }, {
    path: '/404',
    name: '404',
    component: () => import('../views/404/index.vue'),
    meta: {
      name: '404'
    }
  }
]



const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
